package com.example.repository;

import com.example.entity.Category;
import com.example.repository.expand.ExpandJpaRepository;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

/**
 * Created by babyant on 17/3/6.
 */
@Repository
public interface CategoryRepository extends ExpandJpaRepository<Category,Long> {

    @Override
    Category save(Category category);


    @Override
    Page<Category> findAll(Pageable pageable);
}
